package com.tanhua.sso.server.service;

import com.tanhua.api.UserLocationServiceApi;
import com.tanhua.config.UserHolder;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class BaiDuService {
    @DubboReference
    private UserLocationServiceApi userLocationServiceApi;
    /*上报地理位置*/
    public void location(Number latitude, Number longitude, String addrStr) {
        //获取当前用户id
        Long userId = UserHolder.getUserId();
        userLocationServiceApi.location(latitude,longitude,addrStr,userId);
    }
}
